import http from "@/utils/request";
import {url} from "@/services/Agents/index";

export async function addStore(data: object): Promise<API.Result> {
    /** 代理添加店铺 */
    return http.post(`${url}/stores`, data);
}

export async function getStores(current = 1, page_size = 50): Promise<API.Result> {
    /** 获取订单列表 */
    return http.get(`${url}/stores`, {params: {current, page_size}});
}